<?php
namespace backend\models;
use common\models\AuthAssignment;
use common\models\User ;

class UserDao extends User
{
    public function getRoles()
    {
        return $this->hasMany(AuthAssignment::class, [ 'user_id'=> 'Id']);
    }
}